package com.neu.envprotection.airQuality.feign;

import com.neu.envprotection.airQuality.dao.entity.AirQuality;
import com.neu.envprotection.airQuality.dto.resp.GetAQIDistributionRespDto;
import com.neu.envprotection.airQuality.dto.resp.GetAQITrendRespDto;
import com.neu.envprotection.airQuality.dto.resp.GetProvinceAQIRespDto;
import com.neu.envprotection.common.resp.RestResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 空气质量微服务调用客户端
 *
 */
@Component
@FeignClient(value = "env-air-service")
public interface AirQualityFeign {
    @PostMapping("/api/inner/investigator/addAQI")
    RestResp<Void> addAirQuality(@RequestBody AirQuality airQuality);

    @PostMapping("/api/inner/investigator/getProvinceAQI")
    RestResp<List<GetProvinceAQIRespDto>> getProvinceAQI();

    @PostMapping("/api/inner/investigator/getAQIDistribution")
    RestResp<List<GetAQIDistributionRespDto>> getAQIDistribution();

    @PostMapping("/api/inner/investigator/getAQITrend")
    RestResp<List<GetAQITrendRespDto>> getAQITrend();

}
